package games.tankwars.behaviors;

import java.util.Set;

import games.tankwars.Level;
import games.tankwars.entities.Bullet;
import games.tankwars.entities.MazeElement;
import vooga.behaviors.MoveBehavior;
import vooga.entities.Entity;
import vooga.geom.DoubleDimension;
import vooga.geom.Vector;

public class SmarterTank extends vooga.behaviors.AbstractBehavior
{
    private games.tankwars.entities.Tank myTank;
    private vooga.core.AbstractLevel myLevel;
    private int myTimer;
    private int map[][];
    private int myWidth=320;
    private int myHeight=320;
    
    public SmarterTank (games.tankwars.entities.Tank tank, Level level)
    {
    	myTimer=0;
        myTank = tank;
        myLevel=level;
        map[myWidth][myHeight]=0;
    }

	@Override
	public void step(Entity target) {
		myTimer++;
		double BULLET_MOVE_SPEED=5;
		
		double dx=myTank.getCenter().getX()-target.getCenter().getX();
		double dy=myTank.getCenter().getY()-target.getCenter().getY();
		double dDistance=Math.sqrt(dx*dx+dy*dy);	
		
		
		vooga.geom.Vector Velocity = new vooga.geom.Vector();
	}
}
